//获取应用实例
const app = getApp()

Page({
	data: {
		couponSn:''
	},

	onLoad: function({ couponSn }) {
		this.setData({
			couponSn:couponSn
		})
	},
	
	onNowUse() {
		wx.navigateToMiniProgram({
			appId: "wx90ed8918c4766d32",
			path: "pages/index/index",
			extraData: {
			  //   foo: 'bar'
			},
			envVersion: "develop",
			success(res) {
			  // 打开成功
			},
		});
	},
	
	onDetails() {
		wx.navigateTo({ url: `../couponDetails/couponDetails?couponSn=${this.data.couponSn}` });
	}
})
